package com.poly.polyparameter_;

public class Worker extends Employee{

    public Worker (String Name, double Salary) {
        super(Name, Salary);
    }

    @Override
    public double getAnnual() {
        return super.getAnnual();
    }

    public void work() {
        System.out.println("普通工人" + this.getName() + "正在工作");
    }

}
